cmake_minimum_required(VERSION 2.8)

PROJECT( ../bin/dd_evaluator )

FIND_PACKAGE( OpenCV REQUIRED )
IF (OpenCV_FOUND)
	INCLUDE_DIRECTORIES(${OPENCV_INCLUDE_DIR})
ENDIF ()
#FIND_PACKAGE( Boost REQUIRED )


#find_package(Boost COMPONENTS system filesystem REQUIRED)

FIND_PACKAGE(Boost COMPONENTS system filesystem REQUIRED)
IF (BOOST_FOUND)
    INCLUDE_DIRECTORIES(${BOOST_INCLUDE_DIR})
ENDIF ()

ADD_EXECUTABLE( ${PROJECT_NAME}
	eccblock/eccBlock/eccBlock.cpp	eccblock/eccBlock/eccBlock.h 

	dd_evaluator.cpp 	dd_evaluator.hpp
	cv_utils.cpp		cv_utils.hpp
	im_proc.cpp		im_proc.hpp
	evaluation.cpp		evaluation.hpp
	
	bsearch.cxx		bsearch.h
)

TARGET_LINK_LIBRARIES( 
	${PROJECT_NAME} 
	${OpenCV_LIBS} 
	${Boost_FILESYSTEM_LIBRARY}
	${Boost_SYSTEM_LIBRARY}
)
